/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package assisisw.smartcal.entitysubsystem.exceptions.user;

import assisisw.smartcal.entitysubsystem.User;

/**
 *
 * @author Francesco
 */
public abstract class UserException extends Exception 
{

    // Instance Fields
    
    /***/
    private User user ;
    
    // Instance Methods
    
    /**
     * @param user
     * @throws IllegalArgumentException
     */
    protected UserException ( User user ) 
    {
        super () ;
        if ( user != null )
            this.user = user ;
        else
            throw new IllegalArgumentException () ;
    }
    
    /**
     * @return
     */
    public User getUser () 
    {
        return user ;
    }
    
}
